<template>
    <div>
        <input type="text" placeholder="请输入名称" v-model="name">
        <input type="password" placeholder="请输入密码" v-model="phone">
        <div>
            <button @click="deng">登录</button>
        </div>
    </div>
</template>

<script>
import axios from 'axios';
export default {
    name: '',
    data() {
        return {
            name:"",
            phone:"",
        };
    },
    props: {},

    components: {},

    created() {},

    mounted() {},

    methods: {
        deng(){
            axios.get('/deng').then((result) => {
                console.log(result)
                this.$router.push("/xiao")
            }).catch((err) => {
                console.log(err)
            });
        }
    },

    computed: {},

    watch: {},

    directives: {},

    filters: {}
};
</script>

<style scoped>
* {
    margin: 0;
}
</style>
